﻿/*
 * Created by SharpDevelop.
 * User: xieen
 * Date: 2013-08-19
 * Time: 14:57
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;

namespace GoF23Learning._08.Decorator_Pattern.Refactor
{
	/// <summary>
	/// Description of App.
	/// </summary>
	public class App
	{
		public void Main()
		{
			ITank tank = new T50A();
			Decorator d =  new DecoratorA(tank);
			DecoratorB db = new DecoratorB(d); //拥有DecoratorA，DecoratorB的功能
			
			
			
			db.Run();
			db.Shot();		
			
		}
	}
}
